package adminRequest

type ScoreRuleListRequest struct {
	Page     int `form:"page" json:"page" validate:"required"`
	PageSize int `form:"pageSize,default:15" json:"pageSize,default:15"`
}

type AddScoreRuleRequest struct {
	Year     int    `form:"year" json:"year" validate:"required" msg:"年份必须存在"`
	TypeId   int    `form:"type_id" json:"type_id" validate:"required" msg:"类型必须存在"`
	JsName   string `form:"js_name" json:"js_name" validate:"required" msg:"规则名称必须存在"`
	JsRule   string `form:"js_rule" json:"js_rule" validate:"required" msg:"计算规则必须存在"`
	JsRange  string `form:"js_range" json:"js_range" validate:"required" msg:"人员范围必须存在"`
	RankSort string `form:"rank_sort" json:"rank_sort" validate:"required" msg:"排序必须存在"`
}

type EditScoreRuleRequest struct {
	AddScoreRuleRequest
	Id int64 `form:"id" json:"id" validate:"required"`
}
